package com.pmsystem.dao;

import com.pmsystem.pojo.Fix;
import com.pmsystem.pojo.FixExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface FixMapper {
    long countByExample(FixExample example);

    int deleteByExample(FixExample example);

    int deleteByPrimaryKey(Integer fixBillId);

    int insert(Fix record);

    int insertSelective(Fix record);

    List<Fix> selectByExample(FixExample example);

    Fix selectByPrimaryKey(Integer fixBillId);

    int updateByExampleSelective(@Param("record") Fix record, @Param("example") FixExample example);

    int updateByExample(@Param("record") Fix record, @Param("example") FixExample example);

    int updateByPrimaryKeySelective(Fix record);

    int updateByPrimaryKey(Fix record);
    


	/**
	 * 
	 * <p>Title: findFix</p >  
	 * <p>Description: 按一定条件查找维修单，注意SQL语句</p >  
	 * @author 泽强
	 * @param map
	 * @return
	 */
	List<Fix> findFix(Map<String, Object> map);

	/**
	 * 
	 * <p>Title: fixCount</p >  
	 * <p>Description: 获取一定条件的fix的记录数</p >  
	 * @author 泽强
	 * @param map
	 * @return
	 */
	Long fixCount(Map<String, Object> map);

	List<Map<String, Object>> adminFindFix(Map<String, Object> map);
}